package cn.gdrj.est.dao;

import cn.gdrj.est.entity.MaintainOrder;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface MaintainOrderDao {
    int deleteByPrimaryKey(Long id);

    int insert(MaintainOrder record);

    int insertSelective(MaintainOrder record);

    MaintainOrder selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(MaintainOrder record);

    int updateByPrimaryKey(MaintainOrder record);

    @Update("update maintain_order set orderNo = #{orderNo} where id=#{id}")
    int updateOrderNo(@Param("id") Long id, @Param("orderNo") String orderNo);

    MaintainOrder selectByOrderNo(@Param("orderNo") String orderNo,
                                  @Param("isDelete") Integer isDelete);

    int updateOrderStatusByOrderNo(@Param("orderNo") String orderNo,
                                   @Param("status") Integer status);
}
